#!/bin/bash
g++ -I/usr/local/lib64/R/include -L/usr/local/lib -I ~/ -I -DNDEBUG -I/usr/local/atlas/include -I/usr/local/include -lboost -lblas -latlas -llapack -fopenmp -larmadillo   -fpic  -g -O3  -c test/Rprob_separated.cpp -o test/Rprob_separated.o
gfortran -fpic -O3 -c include/simulate/scrambling.f -o 085A-LowDiscrepancy.o
g++ -shared -L/usr/local/lib64 -L ~/ -llapack -larmadillo -fopenmp -o test/Rprob_separated.so test/Rprob_separated.o 085A-LowDiscrepancy.o -lgfortran -lm

